<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>this指向</title>
</head>
<body>
    <script>
        // "use strict"
        var name = '111'
        function fn(){
            var name = '222'
            console.log(this.name);
        }
        fn() //普通函数
        let obj = {
            name:'333',
            fn:function(){
                console.log(this.name);
                
            }
        }
    </script>
</body>
</html>